package org.ilead.iserve.dao;

import java.util.List;

import org.ilead.iserve.model.Weibo;

public interface IWeiboDAO {
	// property constants
	public static final String USER_ID = "userId";
	public static final String LOGIN_NAME = "loginName";
	public static final String URL = "url";
	
	public abstract void save(Weibo transientInstance);

	public abstract void delete(Weibo persistentInstance);

	public abstract Weibo findById(java.lang.Integer id);

	public abstract List findByExample(Weibo instance);

	public abstract List findByProperty(String propertyName, Object value);
	
	public abstract List findByUserId(Object userId);
	
	public abstract List findByLoginName(Object loginName);
	
	public abstract List findByUrl(Object url);

	public abstract List findAll();

	public abstract Weibo merge(Weibo detachedInstance);

	public abstract void attachDirty(Weibo instance);

	public abstract void attachClean(Weibo instance);
}
